<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>DIY自选配置 - DIY装机大师 - 佳恒科技</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<meta content="MSHTML 6.00.2900.5921" name="GENERATOR" />
		<link href="<%=basePath%>/style/common.css" type="text/css"
			rel="stylesheet" />
		<link href="<%=basePath%>/style/zxpz.css" type="text/css"
			rel="stylesheet" />
		<link href="<%=basePath%>/style/pagination.css" type="text/css"
			rel="stylesheet" />
		<script type="text/javascript"
			src="<%=basePath%>/script/jquery1.3.2.js"></script>
		<script language="javascript" src="<%=basePath%>/editor/xheditor.js"
			type="text/javascript"></script>
		<script language="javascript"
			src="<%=basePath%>/script/jquery.form.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(function(){
				
			});
		</script>
	</head>
	<body>
		<div class="Main">
			<!--[if !ie]>正文左侧开始<![endif]-->
			<div class="left">
				33333333
			</div>
			<!--[if !ie]>正文左侧结束<![endif]-->
			<!--[if !ie]>正文右侧开始<![endif]-->
			<div class="right">
				<div class="pzdList_td">
					<form action="<%=basePath%>/product/addProduct" method="post" enctype="multipart/form-data">
						<table cellspacing="0" cellpadding="0" width="100%" border="0">
							<tr>
								<td class="first" width="90">
									所属分类
								</td>
								<td class="align_Left">
									<s:select list="sortList" headerKey="0" name="sort.id"
										headerValue="请选择分类名称" listKey="id" listValue="name"
										theme="simple" />
								</td>
							</tr>
							<tr>
								<td class="first" width="90">
									配件名称
								</td>
								<td class="align_Left">
									<input type="text" name="product.name" style="width: 260px;"/>
								</td>
							</tr>
							<tr>
								<td class="first" width="90">
									配件售价
								</td>
								<td class="align_Left">
									<input type="text" name="product.price" />
								</td>
							</tr>
							<tr>
								<td class="first" width="90">
									配件成本价
								</td>
								<td class="align_Left">
									<input type="text" name="product.cost"/>
								</td>
							</tr>
							<tr>
								<td class="align_Left" colspan="2">
									<textarea class="xheditor-simple" name="product.intro"
										rows="18" style="width: 550px;"></textarea>
								</td>
							</tr>
							<tr>
								<td class="first" width="90">
									上传图片
								</td>
								<td class="align_Left">
									<s:file name="fileData" />
								</td>
							</tr>
							<tr>
								<td colspan="2" align="right">
									<input type="submit" value="提交" />
								</td>
							</tr>
						</table>
					</form>
				</div>
			</div>
			<!--[if !ie]>正文右侧结束<![endif]-->
			<div class="clear"></div>
		</div>
	</body>
</html>
